<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="admin_menu.jsp"%>
<!--/sidebar-->
<div class="main-wrap">

	<div class="crumb-wrap">
		<div class="crumb-list">
			<i class="icon-font"></i><a href="admin_index.jsp">首页</a><span
				class="crumb-step">&gt;</span><a class="crumb-name"
				href="admin_docateselect">分类管理</a><span class="crumb-step">&gt;</span><span>修改分类</span>
		</div>
	</div>
	<div class="result-wrap">
		<div class="result-content">
			<form action="admin_docateupdate" method="post" id="myform"
				name="myform">
				<input type="hidden" name="cateid" value="${category.category_id}">
				<table class="insert-tab" width="100%">
					<tbody>
						<tr>
							<th><i class="require-red">*</i>父级分类：</th>
							<td><select class="common-text required" id="title"
								name="cateparent">
									<option value="0">一级分类</option>
									<c:forEach var="cate" items="${catearr}">
										<c:if test="${cate.category_parent == 0}">
											<c:if test="${cate.category_id == category.category_parent}">
												<option value="${cate.category_id}" selected> ${cate.category_name} </option>
											</c:if>
											<c:if test="${cate.category_id != category.category_parent}">
												<option value="${cate.category_id}">${cate.category_name}</option>
											</c:if>
										</c:if>
									</c:forEach>
							</select></td>
						</tr>
						<tr>
							<th><i class="require-red">*</i>分类名称：</th>
							<td><input class="common-text required" id="title"
								name="catename" size="50" value="${category.category_name}" type="text"></td>
						</tr>
						<tr>
							<th></th>
							<td><input class="btn btn-primary btn6 mr10" value="修改"
								type="submit"> <input class="btn btn6"
								onClick="history.go(-1)" value="返回" type="button"></td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>

</div>
</div>
</body>
</html>